package com.wzapp.sitposture.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 功能: 数据收集配置，主要作用在于Spring启动时自动加载一个ExecutorService对象.<br/>
 *
 * @author ql
 * @version 1.1
 * @create 2018-10-25 19:02
 **/
@Configuration
public class ThreadPoolConfig {

    @Bean
    public ExecutorService getThreadPool(){
        return Executors.newFixedThreadPool(50);
    }
}
